#include <iostream>
#include "Thread.hpp"
#include <time.h>
#include <memory>

using namespace std;

class MyThread
:public th::Thread{
public:
    void run() override{
        srand(time(NULL));

        int num;
        for(int i = 0; i < 10; ++i){
            num = rand() % 100;
            cout << num << " ";
        }
        cout << endl;
    }
};

int main()
{
    unique_ptr<th::Thread> thread(new MyThread);
    thread->start();
    thread->join();

    return 0;
}

